package com.example.f8399.testdemo.activity;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.example.f8399.testdemo.BaseActivity;
import com.example.f8399.testdemo.R;
import com.example.f8399.testdemo.databinding.ActivityF1Binding;
import com.example.f8399.testdemo.fragment.FirstFragment;

public class F1Activity extends BaseActivity {

    ActivityF1Binding mBinding;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       mBinding =DataBindingUtil. setContentView(this,R.layout.activity_f1);

    }

    @Override
    protected void onStart() {
        super.onStart();
        initView();

    }

    private void initView() {
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        FragmentTransaction transaction = supportFragmentManager.beginTransaction();
        transaction.add(R.id.layout_container, FirstFragment.newIntants());
        transaction.commit();
    }
}
